﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="submit.aspx.cs" Inherits="contact_submit" ValidateRequest="false" Async="true"
    MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title> Teledirect | Contact Us | Request for Information</title>
    <meta name="description" content="Send your request for information to Teledirect." />
    <meta name="keywords" content="Teledirect Private Limited, BPO companies, Teledirect BPO services." />
    <meta name="Author" content="Teledirect Authorship - Outsourcing" />
    <meta name="revisit-after" content="10 days" />
    <meta name="content-language" content="en" />
    <!-- Scripts  |  Start  -->

    <script type="text/javascript">
        $(document).ready(function() {
            $().UItoTop({ easingType: 'easeOutQuart' });
        });

        $("#op").css({ opacity: 0.5 });
    </script>

    <!-- Scripts  |  End    -->
    <style type="text/css">
        .style1
        {
            width: 182px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" runat="Server">
    <!-- Showcase Banner  |  Start -->
    <div id="showcase">
        <div id="canvas" class="contact">
            <!-- #Include file="../includes/showcase_nav.inc" -->
            <div class="grid z30">
            </div>
            <div class="manlady z25">
            </div>
            <div class="bg z20">
            </div>
            <div id="cloud_big" class="career z15">
            </div>
            <div class="sun z10">
            </div>
        </div>
    </div>
    <!-- Showcase Banner  |  End   -->
    <div class="seperator">
    </div>
    <div id="body">
        <!-- Right Column | Start -->
        <div class="col_left">
            <div class="menu">
                <ul>
                    <li><a href="../contact/" class="select">Contact Us</a></li>
                    <li><a href="offices.aspx">Our Offices</a></li>
                    <li><a href="../board/list-question.aspx">Q&amp;A</a></li>
                </ul>
            </div>
        </div>
        <!-- Right Column | End   -->
        <!-- Content Column | Start -->
        <div class="col_mid">
            <!-- Quick Nav [Prev / Next]  |  Start  -->
            <div class="quick_nav_container">
                <div class="quick_nav right">
                    <div class="quick_nav_button">
                        <a href="#" class="empty">
                            <img src="../images/other/spacer.png" alt="Previous Page" width="10" height="15" /></a></div>
                    <div class="quick_nav_button">
                        <a href="offices.aspx" class="next">
                            <img src="../images/other/spacer.png" alt="Next Page" width="10" height="15" /></a></div>
                </div>
            </div>
            <!-- Quick Nav [Prev / Next]  |  End    -->
            <h1 class="heading">
                Contact Teledirect</h1>
            <div class="seperator">
            </div>
            <div class="content">
                <div id="divAppForm" runat="server">
                    <table width="100%" cellpadding="3" cellspacing="3">
                        <tr>
                            <td colspan="3">
                                <h2>
                                    Please complete following form</h2>
                                <br />
                                <span style="display: none; color: Red; font-weight: bold; font-size: small">All fields
                                    are required.</span>
                                <asp:ValidationSummary runat="server" ID="vsApplyNow" ValidationGroup="contactus"
                                    ShowSummary="false" ShowMessageBox="true" HeaderText="Opps.., please complete all (*) field(s)." />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Name
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlTitle" runat="server">
                                    <asp:ListItem Text="Select ..." Value="-1"></asp:ListItem>
                                    <asp:ListItem Text="Mr." Value="MR"></asp:ListItem>
                                    <asp:ListItem Text="Mrs." Value="MRS"></asp:ListItem>
                                    <asp:ListItem Text="Ms." Value="MS"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="rfvTitle" ControlToValidate="ddlTitle"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please select title."
                                    Text="*" InitialValue="-1" />
                                <asp:TextBox runat="server" ID="txtFullName" MaxLength="120" Width="159px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvFullName" ControlToValidate="txtFullName"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter your name."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^[a-zA-Z''-'\s]{2,120}$" ControlToValidate="txtFullName"
                                    Text="**" ErrorMessage="Invalid character(s) in full name." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Designation
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtDesignation" MaxLength="120" Width="240px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvDesignation" ControlToValidate="txtFullName"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter your designation."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revDesignation" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^[a-zA-Z''-'\s]{2,120}$" ControlToValidate="txtDesignation"
                                    Text="**" ErrorMessage="Invalid character(s) in designation." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Company Name
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtCompanyName" MaxLength="240" Width="240px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvCompanyName" ControlToValidate="txtCompanyName"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter your company name."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revCompanyName" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^[a-zA-Z''-'\s]{2,240}$" ControlToValidate="txtCompanyName"
                                    Text="**" ErrorMessage="Invalid character(s) in company name." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Tel:
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtContactNumber" MaxLength="80" Width="240px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvContactNumber" ControlToValidate="txtContactNumber"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter telephone number."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revContactNumber" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^[0-9-+' ']{5,20}$" ControlToValidate="txtContactNumber"
                                    Text="**" ErrorMessage="Invalid character(s) in tel number." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Email
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtEmailAddress" MaxLength="255" Width="240px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvEmailAddress" ControlToValidate="txtEmailAddress"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter email address."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revEmailAddress" runat="server" ValidationGroup="contactus"
                                    Text="**" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ControlToValidate="txtEmailAddress" ErrorMessage="Invalid email address format."
                                    Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Type of service required
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlTypeOfService" runat="server">
                                    <asp:ListItem Text="Select ..." Value="-1"></asp:ListItem>
                                    <asp:ListItem Text="High achieving sales machine" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Profit generating customer service" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Call centre improvement" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="rfvTypeOfService" ControlToValidate="ddlTypeOfService"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please select a type of service required."
                                    Text="*" InitialValue="-1" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Preferred Country
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCountry" runat="server">
                                    <asp:ListItem Text="Select ..." Value="-1" />
                                    <asp:ListItem Text="Singapore" Value="SG" />
                                    <asp:ListItem Text="Thailand" Value="TH" />
                                    <asp:ListItem Text="Malaysia" Value="MY" />
                                    <asp:ListItem Text="Hong Kong" Value="HK" />
                                    <asp:ListItem Text="Indonesia" Value="ID" />
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" InitialValue="-1" ID="rfvCountry" ControlToValidate="ddlCountry"
                                    ValidationGroup="contactus" ErrorMessage="Please select prefered country name."
                                    Text="*" />
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                                Industry
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtIndustryName" MaxLength="240" Width="240px" />
                                <asp:RequiredFieldValidator runat="server" ID="rfvIndustryName" ControlToValidate="txtFullName"
                                    ValidationGroup="contactus" Display="Dynamic" ErrorMessage="Please enter your industry."
                                    Text="*" />
                                <asp:RegularExpressionValidator ID="revIndustryName" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^[a-zA-Z''-'\s]{2,240}$" ControlToValidate="txtIndustryName"
                                    Text="**" ErrorMessage="Invalid character(s) in industry name." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                Comments:
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:TextBox runat="server" ID="txtComments" MaxLength="3000" TextMode="MultiLine"
                                    Columns="54" Rows="10" onkeydown="SetTextLimit(this, 3000);" Width="430px" onkeyup="SetTextLimit(this,3000);" />
                                <asp:RegularExpressionValidator ID="revComments" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^\s*([^\s]\s*){0,3000}$" ControlToValidate="txtComments"
                                    Text="**" ErrorMessage="Only 3000 characters are allowed for comments." Display="Dynamic"></asp:RegularExpressionValidator>
                                <br />
                                <font size="1">(Maximum characters: 3000)<br />
                                    You have
                                    <asp:TextBox ReadOnly="true" ID="txtCommentsCountDown" runat="server" Width="40px"
                                        Text="3000" />
                                    characters left.</font>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Security Check
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:Image ID="hplCaptcha" runat="server" ImageUrl="~/captcha/Handler.ashx" />
                                <br />
                                Please type as shown on image above:<br />
                                <asp:TextBox Width="220px" ID="txtSecurityCheck" MaxLength="10" runat="server" />
                                <asp:HiddenField ID="hidSecurityCheck" Visible="false" runat="server" />
                                <asp:RequiredFieldValidator ID="rfvSecurityCheck" ValidationGroup="contactus" ControlToValidate="txtSecurityCheck"
                                    runat="server" Display="Dynamic" Text="*" ErrorMessage="Please enter security check code."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revSecurityCheck" runat="server" ValidationGroup="contactus"
                                    ValidationExpression="^\s*([^\s]\s*){4}$" ControlToValidate="txtSecurityCheck"
                                    Text="**" ErrorMessage="Please type 4 characters for security check code." Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="170px">
                            </td>
                            <td>
                            </td>
                            <td>
                                <div id="divProcessing" style="display: none;">
                                    <asp:Label runat="server" ID="lblSubmitMessage" ForeColor="Red" />
                                </div>
                                <asp:Button runat="server" ID="btnSubmitForm" OnClientClick="javascript:return SubmitConfirm();"
                                    OnClick="btnSubmitForm_Click" CausesValidation="true" ValidationGroup="contactus"
                                    Text="Submit" Width="120px" Height="35px" Font-Bold="true" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="divMessage" runat="server">
                    <asp:Label runat="server" ID="lblMessage" />
                </div>
            </div>
        </div>
        <!-- Content Column | Start -->
        <div class="clear">
        </div>
    </div>
    <div class="seperator">
    </div>

    <script language="javascript" type="text/javascript">
        function SetTextLimit(limitField, limitCount) {
            limitText(limitField, document.getElementById('<%=txtCommentsCountDown.ClientID%>'), limitCount);
        }

        function limitText(limitField, limitCount, limitNum) {
            //alert(limitField.value);
            //alert(limitCount.value);
            //alert(limitNum);
            if (limitField.value.length > limitNum) {
                limitField.value = limitField.value.substring(0, limitNum);
            } else {
                limitCount.value = limitNum - limitField.value.length;
            }
        }

        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('contactus')) {
                _retVal = confirm('Are you confirm to SUBMIT?');
                if (_retVal) {
                    document.getElementById('<%=lblSubmitMessage.ClientID%>').innerHTML = 'Processing...';
                    document.getElementById('divProcessing').style.display = '';
                    //document.getElementById('<%=lblSubmitMessage.ClientID%>').style.color = 'gray';
                    document.getElementById('<%=btnSubmitForm.ClientID%>').style.display = 'none';
                }
            }
            return _retVal;
        }

    </script>

</asp:Content>
